package com.ouheng.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

import com.ouheng.shop.dao.GzMemberDao;
import com.ouheng.shop.domain.GzMemberDO;
import com.ouheng.shop.service.GzMemberService;



@Service
public class GzMemberServiceImpl implements GzMemberService {
	@Autowired
	private GzMemberDao gzMemberDao;
	
	@Override
	public GzMemberDO get(Long id){
		return gzMemberDao.get(id);
	}
	
	@Override
	public List<GzMemberDO> list(Map<String, Object> map){
		return gzMemberDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return gzMemberDao.count(map);
	}
	
	@Override
	@Transactional
	public int save(GzMemberDO gzMember){
		return gzMemberDao.save(gzMember);
	}
	
	@Override
	@Transactional
	public int update(GzMemberDO gzMember){
		return gzMemberDao.update(gzMember);
	}
	
	@Override
	@Transactional
	public int remove(Long id){
		return gzMemberDao.remove(id);
	}
	
	@Override
	@Transactional
	public int batchRemove(Long[] ids){
		return gzMemberDao.batchRemove(ids);
	}

	@Override
	public List<String> listWopenid() {
		return gzMemberDao.listWopenid();
	}

	@Override
	public List<String> listWopenidByIsVip(String isvip) {
		return gzMemberDao.listWopenidByIsVip(isvip);
	}
	
}
